package finance

class FFTService {

    static transactional = true

    def top9(doubles) {
        def periods = new FFT().fft( doubles as double[] )
        def periodSize = periods.size() 
        
        return periods[(periodSize - 9)..(periodSize - 1)]
    }
}
